package problems.solved;

import utils.PrimeIterator;

public class Problem7 {
	public static void main(String[] args) {
		long time = System.currentTimeMillis();
		
		PrimeIterator iterator = new PrimeIterator();
		for (int i = 1; i < 10001; i++) {
			iterator.next();
		}
		System.out.println("10001st prime: " + iterator.next() + " in " + (System.currentTimeMillis() - time) + " ms"); // 104743
	}
}
